package com.crm.entity;
import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


@Entity
@Table(name="inv_status")
public class InvoiceStatus implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(generator="increment")
	@GenericGenerator(name="increment", strategy = "increment")
	@Column(name="id")
	private int id;
	
	@Column(name="inv_no")
	private String invoicenumber;
	
	@Column(name="status")
	private String status;
	
	@Column(name="so_date")
	private Date soDate;
	
	@Column(name="so_due_date")
	private Date soDueDate;
	
	
	@Column(name="amount")
	private long amount;
	
	@ManyToOne
	@JoinColumn(name="BUSINESS_ID")
	private Business businessId;
	public int getId() {
		return id;
	}
	
	

	public Date getSoDate() {
		return soDate;
	}



	public void setSoDate(Date soDate) {
		this.soDate = soDate;
	}



	public Date getSoDueDate() {
		return soDueDate;
	}



	public void setSoDueDate(Date soDueDate) {
		this.soDueDate = soDueDate;
	}



	public Business getBusinessId() {
		return businessId;
	}


	public void setBusinessId(Business businessId) {
		this.businessId = businessId;
	}


	public void setId(int id) {
		this.id = id;
	}

	public String getInvoicenumber() {
		return invoicenumber;
	}

	public void setInvoicenumber(String invoicenumber) {
		this.invoicenumber = invoicenumber;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}



	public long getAmount() {
		return amount;
	}



	public void setAmount(long amount) {
		this.amount = amount;
	}
	
	
	
}
